package com.example.netty.service.hymainwarning;

import com.example.netty.common.FluxQuery;
import com.example.netty.pojo.HyMainWarning;
import com.influxdb.client.InfluxDBClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class HyMainWarningServiceImpl  {
    @Autowired
    InfluxDBClient influxDBClient;

    public HyMainWarning findOne(String bucketName){
        return FluxQuery.newFindOne(influxDBClient,bucketName,"-100y","HyMainWarning", HyMainWarning.class);
    }
}
